﻿<%@ Page Title="" Language="C#" MasterPageFile="~/MasterPage/Master.Master" AutoEventWireup="true"
    CodeBehind="wFrmCanibalizacion.aspx.cs" Inherits="Crosland.Automotriz.Web.canibalizacion.wFrmCanibalizacion" %>

<%@ Register Assembly="Microsoft.ReportViewer.WebForms, Version=10.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a"
    Namespace="Microsoft.Reporting.WebForms" TagPrefix="rsweb" %>
<%@ Register Assembly="DevExpress.Web.v13.1, Version=13.1.4.0, Culture=neutral, PublicKeyToken=b88d1754d700e49a"
    Namespace="DevExpress.Web.ASPxPopupControl" TagPrefix="dx" %>
<%@ Register Assembly="DevExpress.Web.v13.1, Version=13.1.4.0, Culture=neutral, PublicKeyToken=b88d1754d700e49a"
    Namespace="DevExpress.Web.ASPxRoundPanel" TagPrefix="dx" %>
<%@ Register Assembly="DevExpress.Web.v13.1, Version=13.1.4.0, Culture=neutral, PublicKeyToken=b88d1754d700e49a"
    Namespace="DevExpress.Web.ASPxEditors" TagPrefix="dx" %>
<%@ Register Assembly="DevExpress.Web.v13.1, Version=13.1.4.0, Culture=neutral, PublicKeyToken=b88d1754d700e49a"
    Namespace="DevExpress.Web.ASPxGridView" TagPrefix="dx" %>
<%@ Register Assembly="DevExpress.Web.v13.1, Version=13.1.4.0, Culture=neutral, PublicKeyToken=b88d1754d700e49a"
    Namespace="DevExpress.Web.ASPxPanel" TagPrefix="dx" %>
<asp:Content ID="Content1" ContentPlaceHolderID="cphMain" runat="server">
    <div class="main-header" style="width: 100%;">
        <div class="main-titulo">
            Canibalización</div>
    </div>
    <div class="content-form">
        <table>
            <tr>
                <td>
                    <dx:ASPxButton ID="btnNuevo" runat="server" Text="Nuevo" AutoPostBack="False" CssFilePath="~/App_Themes/Office2010Blue/{0}/styles.css"
                        CssPostfix="Office2010Blue" Height="23px" SpriteCssFilePath="~/App_Themes/Office2010Blue/{0}/sprite.css"
                        Width="100px" OnClick="btnNuevo_Click">
                        <Image Url="~/Images/bt_new_button.gif">
                        </Image>
                        <Paddings Padding="4px" />
                    </dx:ASPxButton>
                </td>
                <td>
                    <dx:ASPxButton ID="btnModificar" runat="server" Text="Modificar" AutoPostBack="False"
                        CssFilePath="~/App_Themes/Office2010Blue/{0}/styles.css" CssPostfix="Office2010Blue"
                        Height="23px" SpriteCssFilePath="~/App_Themes/Office2010Blue/{0}/sprite.css"
                        Width="100px" OnClick="btnModificar_Click">
                        <Image Url="~/Images/edit.gif">
                        </Image>
                        <Paddings Padding="4px" />
                    </dx:ASPxButton>
                </td>
                <td>
                    <dx:ASPxButton ID="btnSolicitar" runat="server" Text="Solicitar Aprobación" AutoPostBack="False"
                        CssFilePath="~/App_Themes/Office2010Blue/{0}/styles.css" CssPostfix="Office2010Blue"
                        SpriteCssFilePath="~/App_Themes/Office2010Blue/{0}/sprite.css" OnClick="btnSolicitar_Click">
                        <Image Url="~/Images/email2.png">
                        </Image>
                        <Paddings Padding="4px" />
                    </dx:ASPxButton>
                </td>
                <td>
                    <dx:ASPxButton ID="btnAnular" runat="server" Text="Anular" AutoPostBack="False" CssFilePath="~/App_Themes/Office2010Blue/{0}/styles.css"
                        CssPostfix="Office2010Blue" SpriteCssFilePath="~/App_Themes/Office2010Blue/{0}/sprite.css"
                        Width="100px">
                        <ClientSideEvents Click="function(s, e) {
	PopupMsjConfirmacion.Show();
}" />
                        <Image Url="~/Images/delete.png">
                        </Image>
                        <Paddings Padding="4px" />
                    </dx:ASPxButton>
                </td>
                <td>
                    <dx:ASPxButton ID="btnImprimir" runat="server" Text="Imprimir" 
                        AutoPostBack="False" CssFilePath="~/App_Themes/Office2010Blue/{0}/styles.css" 
                        CssPostfix="Office2010Blue" onclick="btnImprimir_Click" 
                        SpriteCssFilePath="~/App_Themes/Office2010Blue/{0}/sprite.css" Width="100px">
                        <Image Url="~/Images/printer.png">
                        </Image>
                        <Paddings Padding="4px" />
                    </dx:ASPxButton>
                </td>
                <td>
                    <dx:ASPxButton ID="btnSalir" runat="server" Text="Salir" AutoPostBack="False" CssFilePath="~/App_Themes/Office2010Blue/{0}/styles.css"
                        CssPostfix="Office2010Blue" SpriteCssFilePath="~/App_Themes/Office2010Blue/{0}/sprite.css"
                        Width="100px" OnClick="btnSalir_Click">
                        <Image Url="~/Images/logout.png">
                        </Image>
                        <Paddings Padding="4px" />
                    </dx:ASPxButton>
                </td>
            </tr>
        </table>
        <dx:ASPxRoundPanel ID="rpContenido" runat="server" Width="200px" CssFilePath="~/App_Themes/Office2010Blue/{0}/styles.css"
            CssPostfix="Office2010Blue" EnableDefaultAppearance="False" GroupBoxCaptionOffsetX="6px"
            GroupBoxCaptionOffsetY="-19px" HeaderText="" ShowHeader="False" SpriteCssFilePath="~/App_Themes/Office2010Blue/{0}/sprite.css"
            View="GroupBox">
            <ContentPaddings PaddingBottom="10px" PaddingLeft="9px" PaddingRight="11px" PaddingTop="10px" />
            <HeaderStyle>
                <Paddings PaddingBottom="6px" PaddingLeft="9px" PaddingRight="11px" PaddingTop="3px" />
            </HeaderStyle>
            <NoHeaderTopEdge BackColor="White">
            </NoHeaderTopEdge>
            <PanelCollection>
                <dx:PanelContent runat="server" SupportsDisabledAttribute="True">
                    <table>
                        <tr>
                            <td>
                                <asp:Label ID="Label1" runat="server" Text="Estado:"></asp:Label>
                            </td>
                            <td>
                                <dx:ASPxComboBox ID="cboEstado" runat="server" CssFilePath="~/App_Themes/Office2010Blue/{0}/styles.css"
                                    CssPostfix="Office2010Blue" Spacing="0" SpriteCssFilePath="~/App_Themes/Office2010Blue/{0}/sprite.css">
                                    <LoadingPanelImage Url="~/App_Themes/Office2010Blue/Editors/Loading.gif">
                                    </LoadingPanelImage>
                                    <LoadingPanelStyle ImageSpacing="5px">
                                    </LoadingPanelStyle>
                                    <Paddings Padding="5px" />
                                </dx:ASPxComboBox>
                            </td>
                            <td>
                                <dx:ASPxButton ID="btnFiltrar" runat="server" Text="Filtrar" AutoPostBack="False"
                                    CssFilePath="~/App_Themes/Office2010Blue/{0}/styles.css" CssPostfix="Office2010Blue"
                                    OnClick="btnFiltrar_Click" SpriteCssFilePath="~/App_Themes/Office2010Blue/{0}/sprite.css"
                                    Width="100px">
                                    <Paddings Padding="4px" />
                                </dx:ASPxButton>
                            </td>
                        </tr>
                    </table>
                    <table style="width: 98%;">
                        <tr>
                            <td style="width: 98%;">
                                <dx:ASPxGridView ID="grdCanibalizacionListado" runat="server" AutoGenerateColumns="False"
                                    CssFilePath="~/App_Themes/Office2010Blue/{0}/styles.css" CssPostfix="Office2010Blue"
                                    Width="1200px" KeyFieldName="ID_LOG_CANIBALIZACION_CAB" 
                                    OnAfterPerformCallback="grdCanibalizacionListado_AfterPerformCallback">
                                    <Columns>
                                        <dx:GridViewDataTextColumn Caption="Nro.Lote" FieldName="NRO_LOTE" VisibleIndex="1"
                                            Width="80px" FixedStyle="Left">
                                        </dx:GridViewDataTextColumn>
                                        <dx:GridViewDataTextColumn Caption="Cod.Org.&lt;/br&gt;Venta" 
                                            FieldName="COD_ORG_VENTAS" VisibleIndex="15"
                                            Width="80px">
                                            <HeaderStyle HorizontalAlign="Center" />
                                            <CellStyle HorizontalAlign="Center">
                                            </CellStyle>
                                        </dx:GridViewDataTextColumn>
                                        <dx:GridViewDataTextColumn Caption="Nro.Motor" FieldName="NRO_MOTOR" VisibleIndex="17"
                                            Width="120px" Visible="False">
                                        </dx:GridViewDataTextColumn>
                                        <dx:GridViewDataTextColumn Caption="VIN" FieldName="VIN" VisibleIndex="5" 
                                            Width="150px" FixedStyle="Left">
                                        </dx:GridViewDataTextColumn>
                                        <dx:GridViewDataTextColumn Caption="Año modelo " FieldName="ANIO_MODELO" VisibleIndex="18"
                                            Width="120px" FixedStyle="Left" Visible="False">
                                        </dx:GridViewDataTextColumn>
                                        <dx:GridViewDataTextColumn Caption="Año &lt;/br&gt; fabricación" FieldName="ANIO_FABRICACION"
                                            VisibleIndex="6" Width="120px">
                                            <HeaderStyle HorizontalAlign="Center" />
                                            <CellStyle HorizontalAlign="Center">
                                            </CellStyle>
                                        </dx:GridViewDataTextColumn>
                                        <dx:GridViewDataTextColumn Caption="Color" FieldName="DES_COLOR" VisibleIndex="4"
                                            Width="100px" FixedStyle="Left">
                                        </dx:GridViewDataTextColumn>
                                        <dx:GridViewDataTextColumn Caption="Estado &lt;/br&gt;Aprobacion" 
                                            FieldName="ESTADO_PENDIENTE" VisibleIndex="7"
                                            Width="80px">
                                            <HeaderStyle HorizontalAlign="Center" />
                                            <CellStyle HorizontalAlign="Center">
                                            </CellStyle>
                                        </dx:GridViewDataTextColumn>
                                        <dx:GridViewDataTextColumn FieldName="FECHA_CANIBALIZACION" ShowInCustomizationForm="True"
                                            Width="115px" Caption="Fecha &lt;/br&gt;Canibalización" VisibleIndex="8">
                                            <PropertiesTextEdit DisplayFormatString="dd/MM/yyyy">
                                            </PropertiesTextEdit>
                                            <HeaderStyle HorizontalAlign="Center" />
                                            <CellStyle HorizontalAlign="Center">
                                            </CellStyle>
                                        </dx:GridViewDataTextColumn>
                                        <dx:GridViewDataTextColumn Caption="Fec.Armado" FieldName="FECHA_ARMADO" VisibleIndex="9"
                                            Width="100px">
                                            <PropertiesTextEdit DisplayFormatString="dd/MM/yyyy">
                                            </PropertiesTextEdit>
                                            <CellStyle HorizontalAlign="Center">
                                            </CellStyle>
                                        </dx:GridViewDataTextColumn>
                                        <dx:GridViewDataTextColumn Caption="Id_log_Canibalizacion_Cab" FieldName="ID_LOG_CANIBALIZACION_CAB"
                                            Visible="False" VisibleIndex="0" FixedStyle="Left">
                                        </dx:GridViewDataTextColumn>
                                        <dx:GridViewDataTextColumn FieldName="ID_ESTADO" ShowInCustomizationForm="True" Visible="False"
                                            VisibleIndex="16">
                                        </dx:GridViewDataTextColumn>
                                        <dx:GridViewDataTextColumn Caption="Modelo" FieldName="DES_MODELO" VisibleIndex="3"
                                            Width="150px" FixedStyle="Left">
                                        </dx:GridViewDataTextColumn>
                                        <dx:GridViewDataTextColumn Caption="Marca" FieldName="DES_MARCA" ShowInCustomizationForm="True"
                                            VisibleIndex="2" Width="100px" FixedStyle="Left">
                                        </dx:GridViewDataTextColumn>
                                        <dx:GridViewDataTextColumn Caption="Estado Armado" FieldName="ESTADO_ARMADO" 
                                            VisibleIndex="14" Width="100px">
                                            <CellStyle HorizontalAlign="Center">
                                            </CellStyle>
                                        </dx:GridViewDataTextColumn>
                                        <dx:GridViewDataTextColumn Caption="Días &lt;/br&gt;canibalizado" 
                                            ShowInCustomizationForm="True" VisibleIndex="10" Width="80px" 
                                            FieldName="NRO_DIAS">
                                            <HeaderStyle HorizontalAlign="Center" />
                                            <CellStyle HorizontalAlign="Center">
                                            </CellStyle>
                                        </dx:GridViewDataTextColumn>
                                        <dx:GridViewDataTextColumn Caption="Costo Moto S/." 
                                            ShowInCustomizationForm="True" VisibleIndex="11" Width="100px" 
                                            FieldName="IMP_COSTO_S">
                                            <PropertiesTextEdit DisplayFormatString="##,##0.00">
                                            </PropertiesTextEdit>
                                            <CellStyle HorizontalAlign="Center">
                                            </CellStyle>
                                        </dx:GridViewDataTextColumn>
                                        <dx:GridViewDataTextColumn Caption="Costo &lt;/br&gt;Canibalizado" 
                                            ShowInCustomizationForm="True" VisibleIndex="12" Width="100px" 
                                            FieldName="COSTO_CANIBALIZADO">
                                            <PropertiesTextEdit DisplayFormatString="##,##0.00">
                                            </PropertiesTextEdit>
                                            <HeaderStyle HorizontalAlign="Center" />
                                            <CellStyle HorizontalAlign="Center">
                                            </CellStyle>
                                        </dx:GridViewDataTextColumn>
                                        <dx:GridViewDataTextColumn Caption="% Canibalizado" 
                                            ShowInCustomizationForm="True" VisibleIndex="13" Width="100px" 
                                            FieldName="PORCENTAJE_CANIBALIZADO">
                                            <PropertiesTextEdit DisplayFormatString="##,##0.00">
                                            </PropertiesTextEdit>
                                            <CellStyle HorizontalAlign="Center">
                                            </CellStyle>
                                        </dx:GridViewDataTextColumn>
                                    </Columns>
                                    <SettingsBehavior AllowFocusedRow="True" />
                                    <SettingsPager PageSize="15">
                                    </SettingsPager>
                                    <Settings ShowHorizontalScrollBar="True" />
                                    <SettingsDetail ShowDetailRow="True" />
                                    <Images SpriteCssFilePath="~/App_Themes/Office2010Blue/{0}/sprite.css">
                                        <LoadingPanelOnStatusBar Url="~/App_Themes/Office2010Blue/GridView/Loading.gif">
                                        </LoadingPanelOnStatusBar>
                                        <LoadingPanel Url="~/App_Themes/Office2010Blue/GridView/Loading.gif">
                                        </LoadingPanel>
                                    </Images>
                                    <ImagesFilterControl>
                                        <LoadingPanel Url="~/App_Themes/Office2010Blue/GridView/Loading.gif">
                                        </LoadingPanel>
                                    </ImagesFilterControl>
                                    <Styles CssFilePath="~/App_Themes/Office2010Blue/{0}/styles.css" CssPostfix="Office2010Blue">
                                        <Header ImageSpacing="5px" SortingImageSpacing="5px">
                                        </Header>
                                        <DetailRow>
                                            <BackgroundImage VerticalPosition="bottom" />
                                        </DetailRow>
                                        <LoadingPanel ImageSpacing="5px">
                                        </LoadingPanel>
                                    </Styles>
                                    <StylesPager>
                                        <PageNumber ForeColor="#3E4846">
                                        </PageNumber>
                                        <Summary ForeColor="#1E395B">
                                        </Summary>
                                    </StylesPager>
                                    <StylesEditors ButtonEditCellSpacing="0">
                                        <ProgressBar Height="21px">
                                        </ProgressBar>
                                    </StylesEditors>
                                    <Templates>
                                        <DetailRow>
                                            <dx:ASPxGridView ID="grdCanibalizacionListadoDet" runat="server" AutoGenerateColumns="False"
                                                CssFilePath="~/App_Themes/Office2010Blue/{0}/styles.css" CssPostfix="Office2010Blue"
                                                DataSourceID="ObjDataSourceCanibalizacionDet" 
                                                OnBeforePerformDataSelect="grdCanibalizacionListadoDet_BeforePerformDataSelect" 
                                                onhtmlrowprepared="grdCanibalizacionListadoDet_HtmlRowPrepared">
                                                <Columns>
                                                    <dx:GridViewDataTextColumn FieldName="ID_LOG_CANIB_MOV_CAB" VisibleIndex="0" Caption="Nro.Mov"
                                                        ToolTip="Numero Movimiento">
                                                        <HeaderStyle HorizontalAlign="Left" />
                                                        <CellStyle HorizontalAlign="Left">
                                                        </CellStyle>
                                                    </dx:GridViewDataTextColumn>
                                                    <dx:GridViewDataTextColumn FieldName="ID_LOG_CANIBALIZACION_CAB" Visible="False"
                                                        VisibleIndex="12">
                                                    </dx:GridViewDataTextColumn>
                                                    <dx:GridViewDataTextColumn Caption="Tipo Movimiento" FieldName="TIPO_MOVIMIENTO"
                                                        VisibleIndex="2">
                                                    </dx:GridViewDataTextColumn>
                                                    <dx:GridViewDataTextColumn FieldName="ID_TIPO_MOVIMIENTO" Visible="False" VisibleIndex="11">
                                                    </dx:GridViewDataTextColumn>
                                                    <dx:GridViewDataTextColumn Caption="Fec.Canibalización" FieldName="FECHA_CANIBALIZACION"
                                                        VisibleIndex="1">
                                                        <PropertiesTextEdit DisplayFormatString="dd/MM/yyyy">
                                                        </PropertiesTextEdit>
                                                        <CellStyle HorizontalAlign="Center">
                                                        </CellStyle>
                                                    </dx:GridViewDataTextColumn>
                                                    <dx:GridViewDataTextColumn Caption="Usuario" FieldName="USUARIO" VisibleIndex="4">
                                                        <CellStyle HorizontalAlign="Center">
                                                        </CellStyle>
                                                    </dx:GridViewDataTextColumn>
                                                    <dx:GridViewDataTextColumn Caption="Comentario" FieldName="DESCRIPCION" VisibleIndex="3"
                                                        Width="300px">
                                                        <HeaderStyle HorizontalAlign="Center" />
                                                    </dx:GridViewDataTextColumn>
                                                    <dx:GridViewDataTextColumn Caption="Nro.Artículos" FieldName="NUMERO_ARTICULOS" VisibleIndex="5">
                                                        <CellStyle HorizontalAlign="Center">
                                                        </CellStyle>
                                                    </dx:GridViewDataTextColumn>
                                                    <dx:GridViewDataTextColumn Caption="Importe FOB" FieldName="IMPORTE_FOB" 
                                                        VisibleIndex="8">
                                                        <PropertiesTextEdit DisplayFormatString="##,##0.00">
                                                        </PropertiesTextEdit>
                                                        <CellStyle HorizontalAlign="Center">
                                                        </CellStyle>
                                                    </dx:GridViewDataTextColumn>
                                                    <dx:GridViewDataTextColumn Caption="Costo S/." FieldName="COSTO_S" VisibleIndex="6">
                                                        <PropertiesTextEdit DisplayFormatString="##,##0.00">
                                                        </PropertiesTextEdit>
                                                        <CellStyle HorizontalAlign="Center">
                                                        </CellStyle>
                                                    </dx:GridViewDataTextColumn>
                                                    <dx:GridViewDataTextColumn Caption="Costo US$" FieldName="COSTO_D" VisibleIndex="7">
                                                        <PropertiesTextEdit DisplayFormatString="##,##0.00">
                                                        </PropertiesTextEdit>
                                                        <CellStyle HorizontalAlign="Center">
                                                        </CellStyle>
                                                    </dx:GridViewDataTextColumn>
                                                    <dx:GridViewDataTextColumn FieldName="ES_ANULADO" Visible="False" 
                                                        VisibleIndex="10">
                                                    </dx:GridViewDataTextColumn>
                                                </Columns>
                                                <Images SpriteCssFilePath="~/App_Themes/Office2010Blue/{0}/sprite.css">
                                                    <LoadingPanelOnStatusBar Url="~/App_Themes/Office2010Blue/GridView/Loading.gif">
                                                    </LoadingPanelOnStatusBar>
                                                    <LoadingPanel Url="~/App_Themes/Office2010Blue/GridView/Loading.gif">
                                                    </LoadingPanel>
                                                </Images>
                                                <ImagesFilterControl>
                                                    <LoadingPanel Url="~/App_Themes/Office2010Blue/GridView/Loading.gif">
                                                    </LoadingPanel>
                                                </ImagesFilterControl>
                                                <Styles CssFilePath="~/App_Themes/Office2010Blue/{0}/styles.css" CssPostfix="Office2010Blue">
                                                    <Header ImageSpacing="5px" SortingImageSpacing="5px">
                                                    </Header>
                                                    <LoadingPanel ImageSpacing="5px">
                                                    </LoadingPanel>
                                                </Styles>
                                                <StylesPager>
                                                    <PageNumber ForeColor="#3E4846">
                                                    </PageNumber>
                                                    <Summary ForeColor="#1E395B">
                                                    </Summary>
                                                </StylesPager>
                                                <StylesEditors ButtonEditCellSpacing="0">
                                                    <ProgressBar Height="21px">
                                                    </ProgressBar>
                                                </StylesEditors>
                                            </dx:ASPxGridView>
                                        </DetailRow>
                                    </Templates>
                                 
                                </dx:ASPxGridView>
                            </td>
                        </tr>
                    </table>
                    <table>
                        <tr>
                            <td>
                                <dx:ASPxPopupControl ID="PopupMsjConfirmacion" runat="server" AllowDragging="True"
                                    ClientInstanceName="PopupMsjConfirmacion" CloseAction="CloseButton" CssFilePath="~/App_Themes/Office2010Blue/{0}/styles.css"
                                    CssPostfix="Office2010Blue" EnableViewState="False" HeaderText="Mensaje" Modal="True"
                                    PopupHorizontalAlign="WindowCenter" PopupVerticalAlign="WindowCenter" SpriteCssFilePath="~/App_Themes/Office2010Blue/{0}/sprite.css"
                                    Width="300px" EnableHotTrack="False">
                                    <LoadingPanelImage Url="~/App_Themes/Office2010Blue/Web/Loading.gif">
                                    </LoadingPanelImage>
                                    <HeaderStyle>
                                        <Paddings PaddingLeft="7px" />
                                    </HeaderStyle>
                                    <LoadingPanelStyle ImageSpacing="5px">
                                    </LoadingPanelStyle>
                                    <ContentCollection>
                                        <dx:PopupControlContentControl ID="PopupControlContentControl6" runat="server" SupportsDisabledAttribute="True">
                                            <br />
                                            <dx:ASPxPanel ID="ASPxPanel6" runat="server" DefaultButton="btCreate">
                                                <PanelCollection>
                                                    <dx:PanelContent ID="PanelContent5" runat="server">
                                                        <table>
                                                            <tr>
                                                                <td colspan="3">
                                                                    &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;¿Estas seguro de anular este registro
                                                                    ?
                                                                </td>
                                                            </tr>
                                                            <tr>
                                                                <td colspan="3">
                                                                </td>
                                                            </tr>
                                                            <tr>
                                                                <td>
                                                                    &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
                                                                </td>
                                                                <td>
                                                                    <dx:ASPxButton ID="btnPopAceptar" runat="server" AutoPostBack="False" ClientInstanceName="btnPopAceptar"
                                                                        CssFilePath="~/App_Themes/Office2010Blue/{0}/styles.css" CssPostfix="Office2010Blue"
                                                                        OnClick="btnPopAceptar_Click" SpriteCssFilePath="~/App_Themes/Office2010Blue/{0}/sprite.css"
                                                                        Text="Aceptar" Width="10px">
                                                                        <Image Url="~/Images/ok.png">
                                                                        </Image>
                                                                    </dx:ASPxButton>
                                                                </td>
                                                                <td>
                                                                    <dx:ASPxButton ID="btnPopCancelar" runat="server" AutoPostBack="False" CssFilePath="~/App_Themes/Office2010Blue/{0}/styles.css"
                                                                        CssPostfix="Office2010Blue" SpriteCssFilePath="~/App_Themes/Office2010Blue/{0}/sprite.css"
                                                                        Text="Cancelar" Width="10px">
                                                                        <ClientSideEvents Click="function(s, e) {
	PopupMsjConfirmacion.Hide();
}" />
                                                                        <Image Url="~/Images/delete.png">
                                                                        </Image>
                                                                    </dx:ASPxButton>
                                                                </td>
                                                            </tr>
                                                        </table>
                                                    </dx:PanelContent>
                                                </PanelCollection>
                                            </dx:ASPxPanel>
                                        </dx:PopupControlContentControl>
                                    </ContentCollection>
                                </dx:ASPxPopupControl>
                            </td>
                            <td>
                                <dx:ASPxPopupControl ID="popupmsj" runat="server" AllowDragging="True" ClientInstanceName="popupmsj"
                                    CloseAction="None" CssFilePath="~/App_Themes/Office2010Blue/{0}/styles.css" CssPostfix="Office2010Blue"
                                    EnableViewState="False" HeaderText="Mensaje" Modal="True" PopupHorizontalAlign="WindowCenter"
                                    PopupVerticalAlign="WindowCenter" SpriteCssFilePath="~/App_Themes/Office2010Blue/{0}/sprite.css"
                                    Width="300px" EnableHotTrack="False">
                                    <LoadingPanelImage Url="~/App_Themes/Office2010Blue/Web/Loading.gif">
                                    </LoadingPanelImage>
                                    <HeaderStyle>
                                        <Paddings PaddingLeft="7px" />
                                        <Paddings PaddingLeft="10px" PaddingTop="4px" PaddingRight="4px" PaddingBottom="4px" />
                                    </HeaderStyle>
                                    <LoadingPanelStyle ImageSpacing="5px">
                                    </LoadingPanelStyle>
                                    <ContentCollection>
                                        <dx:PopupControlContentControl ID="PopupControlContentControl5" runat="server" SupportsDisabledAttribute="True">
                                            <br />
                                            <dx:ASPxPanel ID="ASPxPanel2" runat="server" DefaultButton="btCreate">
                                                <PanelCollection>
                                                    <dx:PanelContent ID="Panelpopup" runat="server">
                                                        <table align="center">
                                                            <tr>
                                                                <td colspan="2">
                                                                    <dx:ASPxLabel ID="lblmsj" runat="server" CssFilePath="~/App_Themes/Office2010Blue/{0}/styles.css"
                                                                        CssPostfix="Office2010Blue">
                                                                    </dx:ASPxLabel>
                                                                </td>
                                                            </tr>
                                                            <tr>
                                                                <td colspan="2">
                                                                    &nbsp;
                                                                </td>
                                                            </tr>
                                                        </table>
                                                        <table align="center">
                                                            <tr>
                                                                <td align="center" style="width: 215px">
                                                                    <dx:ASPxButton ID="btnAceptar" runat="server" Text="Aceptar" AutoPostBack="False"
                                                                        CssFilePath="~/App_Themes/Office2010Blue/{0}/styles.css" CssPostfix="Office2010Blue"
                                                                        SpriteCssFilePath="~/App_Themes/Office2010Blue/{0}/sprite.css">
                                                                        <ClientSideEvents Click="function(s, e) {popupmsj.Hide();}" />
                                                                        <Image Url="~/Images/ok.png">
                                                                        </Image>
                                                                    </dx:ASPxButton>
                                                                </td>
                                                            </tr>
                                                        </table>
                                                    </dx:PanelContent>
                                                </PanelCollection>
                                            </dx:ASPxPanel>
                                        </dx:PopupControlContentControl>
                                    </ContentCollection>
                                </dx:ASPxPopupControl>
                            </td>
                        </tr>
                    </table>
                    <table>
                        <tr>
                            <td>
                                <dx:ASPxPopupControl ID="PopupCorreo" runat="server" Height="150px" Width="450px"
                                    ClientInstanceName="PopupCorreo" AllowDragging="True" CloseAction="CloseButton"
                                    CssFilePath="~/App_Themes/Office2010Blue/{0}/styles.css" CssPostfix="Office2010Blue"
                                    HeaderText="Solicitud de aprobación" Modal="True" PopupHorizontalAlign="WindowCenter"
                                    PopupVerticalAlign="WindowCenter" SpriteCssFilePath="~/App_Themes/Office2010Blue/{0}/sprite.css"
                                    EnableHotTrack="False">
                                    <LoadingPanelImage Url="~/App_Themes/Office2010Blue/Web/Loading.gif">
                                    </LoadingPanelImage>
                                    <HeaderStyle>
                                        <Paddings PaddingLeft="7px" />
                                    </HeaderStyle>
                                    <LoadingPanelStyle ImageSpacing="5px">
                                    </LoadingPanelStyle>
                                    <ContentCollection>
                                        <dx:PopupControlContentControl>
                                            <table cellpadding="0" cellspacing="0">
                                                <tr>
                                                    <td>
                                                        Usuario:&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
                                                    </td>
                                                    <td>
                                                        <dx:ASPxComboBox ID="cboUsuarios" runat="server" TextField="DES_NOMBRE" ValueField="DES_EMAIL"
                                                            CssFilePath="~/App_Themes/Office2010Blue/{0}/styles.css" CssPostfix="Office2010Blue"
                                                            Spacing="0" SpriteCssFilePath="~/App_Themes/Office2010Blue/{0}/sprite.css" IncrementalFilteringMode="Contains"
                                                            Width="300px">
                                                            <LoadingPanelImage Url="~/App_Themes/Office2010Blue/Editors/Loading.gif">
                                                            </LoadingPanelImage>
                                                            <LoadingPanelStyle ImageSpacing="5px">
                                                            </LoadingPanelStyle>
                                                            <ButtonStyle Width="13px">
                                                            </ButtonStyle>
                                                            <Paddings Padding="5px" />
                                                            <ValidationSettings>
                                                                <RegularExpression ErrorText="Falló la validación de expresión Regular" />
                                                            </ValidationSettings>
                                                        </dx:ASPxComboBox>
                                                    </td>
                                                </tr>
                                            </table>
                                            <table>
                                                <tr>
                                                    <td>
                                                        Observación:
                                                    </td>
                                                </tr>
                                                <tr>
                                                    <td>
                                                        <dx:ASPxMemo ID="txtObservacion" runat="server" CssFilePath="~/App_Themes/Office2010Blue/{0}/styles.css"
                                                            CssPostfix="Office2010Blue" Height="100px" SpriteCssFilePath="~/App_Themes/Office2010Blue/{0}/sprite.css"
                                                            Width="600px">
                                                        </dx:ASPxMemo>
                                                    </td>
                                                </tr>
                                            </table>
                                            <table style="width: 100%;">
                                                <tr>
                                                    <td align="right">
                                                        <dx:ASPxButton ID="btnEnviar" runat="server" Text="Enviar" AutoPostBack="False" CssFilePath="~/App_Themes/Office2010Blue/{0}/styles.css"
                                                            CssPostfix="Office2010Blue" SpriteCssFilePath="~/App_Themes/Office2010Blue/{0}/sprite.css"
                                                            OnClick="btnEnviar_Click">
                                                            <Image Url="~/Images/email1.PNG">
                                                            </Image>
                                                            <Paddings Padding="4px" />
                                                        </dx:ASPxButton>
                                                    </td>
                                                    <td>
                                                        <dx:ASPxButton ID="btnCancelar" runat="server" Text="Cancelar" AutoPostBack="False"
                                                            CssFilePath="~/App_Themes/Office2010Blue/{0}/styles.css" CssPostfix="Office2010Blue"
                                                            SpriteCssFilePath="~/App_Themes/Office2010Blue/{0}/sprite.css">
                                                            <ClientSideEvents Click="function(s, e) {
	PopupCorreo.Hide();
}" />
                                                            <Image Url="~/Images/delete2.png">
                                                            </Image>
                                                            <Paddings Padding="4px" />
                                                        </dx:ASPxButton>
                                                    </td>
                                                </tr>
                                            </table>
                                        </dx:PopupControlContentControl>
                                    </ContentCollection>
                                </dx:ASPxPopupControl>
                            </td>
                        </tr>
                        <tr>
                            <td>
                                <asp:ObjectDataSource ID="ObjDataSourceCanibalizacionDet" runat="server" SelectMethod="listarPorIdLogCanibalizacionCab"
                                    TypeName="Crosland.Automotriz.Facade.Facade.FacadeCanibalizacion">
                                    <SelectParameters>
                                        <asp:SessionParameter Name="ID_LOG_CANIBALIZACION_CAB" SessionField="ID_LOG_CANIBALIZACION_CAB"
                                            Type="Int32" />
                                    </SelectParameters>
                                </asp:ObjectDataSource>
                            </td>
                        </tr>
                    </table>
                </dx:PanelContent>
            </PanelCollection>
        </dx:ASPxRoundPanel>
   
                    <dx:ASPxPopupControl ID="pcImprimir" runat="server" CssFilePath="~/App_Themes/Office2010Blue/{0}/styles.css"
                        CssPostfix="Office2010Blue" EnableHotTrack="False" HeaderText="Vista Previa"
                        Height="520px" SpriteCssFilePath="~/App_Themes/Office2010Blue/{0}/sprite.css"
                        Width="1100px" AllowDragging="True" 
            ClientInstanceName="pcImprimir" PopupHorizontalAlign="WindowCenter"
                        PopupVerticalAlign="WindowCenter">
                        <LoadingPanelImage Url="~/App_Themes/Office2010Blue/Web/Loading.gif">
                        </LoadingPanelImage>
                        <HeaderStyle>
                            <Paddings PaddingLeft="7px" />
                        </HeaderStyle>
                        <LoadingPanelStyle ImageSpacing="5px">
                        </LoadingPanelStyle>
                        <ContentCollection>
                  
<dx:PopupControlContentControl runat="server" SupportsDisabledAttribute="True">
    


    <rsweb:ReportViewer ID="rpvImprimir" runat="server" Font-Names="Verdana" 
        Font-Size="8pt" Height="490px" InteractiveDeviceInfos="(Collection)" 
        WaitMessageFont-Names="Verdana" WaitMessageFont-Size="14pt" Width="100%">
    </rsweb:ReportViewer>
    


  </dx:PopupControlContentControl>
                  
                        </ContentCollection>
                    </dx:ASPxPopupControl>
            
    </div>
</asp:Content>
